import request from './wrapRequest';
import { LoginProps } from '@/types/loginTypes';


interface LoginResponse{
    token: string;
}

/**
 * 登录
 * @param data 
 * @returns 
 */
export const login = (data: LoginProps) => {
  return  request.post<LoginResponse>(`/admin/user/login`, data);
}


